package com.education.pojo;

import java.util.Date;

public class Question {
    private Integer qId;

    private String qName;

    private String qAnswerTrue;

    private Integer qOrder;

    private String qAnswer;

    private Integer tpId;

    private Date qCreateTime;

    private Date qUpdateTime;

    public Question(Integer qId, String qName, String qAnswerTrue, Integer qOrder, String qAnswer, Integer tpId, Date qCreateTime, Date qUpdateTime) {
        this.qId = qId;
        this.qName = qName;
        this.qAnswerTrue = qAnswerTrue;
        this.qOrder = qOrder;
        this.qAnswer = qAnswer;
        this.tpId = tpId;
        this.qCreateTime = qCreateTime;
        this.qUpdateTime = qUpdateTime;
    }

    public Question(String qName, String qAnswerTrue, Integer qOrder, String qAnswer) {
        this.qName = qName;
        this.qAnswerTrue = qAnswerTrue;
        this.qOrder = qOrder;
        this.qAnswer = qAnswer;
    }

    public Question(Integer qId, String qName, Integer qOrder, String qAnswer) {
        this.qId = qId;
        this.qName = qName;
        this.qOrder = qOrder;
        this.qAnswer = qAnswer;
    }

    public Question(String qAnswerTrue) {
        this.qAnswerTrue = qAnswerTrue;
    }

    public Question() {
        super();
    }

    public Integer getqId() {
        return qId;
    }

    public void setqId(Integer qId) {
        this.qId = qId;
    }

    public String getqName() {
        return qName;
    }

    public void setqName(String qName) {
        this.qName = qName == null ? null : qName.trim();
    }

    public String getqAnswerTrue() {
        return qAnswerTrue;
    }

    public void setqAnswerTrue(String qAnswerTrue) {
        this.qAnswerTrue = qAnswerTrue == null ? null : qAnswerTrue.trim();
    }

    public Integer getqOrder() {
        return qOrder;
    }

    public void setqOrder(Integer qOrder) {
        this.qOrder = qOrder;
    }

    public String getqAnswer() {
        return qAnswer;
    }

    public void setqAnswer(String qAnswer) {
        this.qAnswer = qAnswer == null ? null : qAnswer.trim();
    }

    public Integer getTpId() {
        return tpId;
    }

    public void setTpId(Integer tpId) {
        this.tpId = tpId;
    }

    public Date getqCreateTime() {
        return qCreateTime;
    }

    public void setqCreateTime(Date qCreateTime) {
        this.qCreateTime = qCreateTime;
    }

    public Date getqUpdateTime() {
        return qUpdateTime;
    }

    public void setqUpdateTime(Date qUpdateTime) {
        this.qUpdateTime = qUpdateTime;
    }

    @Override
    public String toString() {
        return "Question{" +
                "qId=" + qId +
                ", qName='" + qName + '\'' +
                ", qAnswerTrue='" + qAnswerTrue + '\'' +
                ", qOrder=" + qOrder +
                ", qAnswer='" + qAnswer + '\'' +
                ", tpId=" + tpId +
                ", qCreateTime=" + qCreateTime +
                ", qUpdateTime=" + qUpdateTime +
                '}';
    }
}